#include <iostream>
using namespace std;
class CTest{
public:
	CTest()
	{x=20;}
	void use_firend();
private:
	int x;
	friend void friend_f(CTest fri);
};
void friend_f(CTest fri)
{fri.x=55;}
void CTest::use_firend()
{CTest fri;
this->firend_f(fri);
::friend_f(fri);
}
int main()
{
	CTest fri,fri1;
	fri.friend_f(fri);
	friend_f(fri1);
	return 0;
}